ff1467b28ddf26538fc91aed325b87da30fcf828,timbuctoo-instancev4/src/main/java/nl/knaw/huygens/timbuctoo/bulkupload/loaders/csv/CsvLoader.java,CsvLoader,CsvLoader,#Map#,24
Before Change
public CsvLoader(Map<String, String> config) {
CSVFormat format = CSVFormat.EXCEL;
if (config.containsKey("delimiter")) {
format = format.withDelimiter(config.get("delimiter").charAt(0));
}
if (config.containsKey("quoteChar")) {
format = format.withQuote(config.get("quoteChar").charAt(0));
After Change
public class CsvLoader implements Loader {
private final CSVFormat format;
public CsvLoader(Map<String, String> config) {
CSVFormat format = CSVFormat.EXCEL;
if (config.containsKey("delimiter")) {
format = format.withDelimiter(onlyChar(config, "delimiter"));
}
if (config.containsKey("quoteChar")) {
format = format.withQuote(onlyChar(config, "quoteChar"));